using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class BigValveMap : ClassMap<BigValve>
    {
        public BigValveMap()
        {
            Table("Tbt_BigValve");
            LazyLoad();
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e=>e.EpcNO).ReadOnly();
            Map(x => x.PipeNet).Column("PipeNet").Not.Nullable();
            Map(x => x.InspectionEmp).Column("InspectionEmp").Not.Nullable();
            Map(x => x.InspectionDt).Column("InspectionDt").Not.Nullable();
            Map(x => x.ProcessingQk).Column("ProcessingQk");
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
